<?
session_start();
include('conn.php');
//$qry1 = "SELECT * from customermast where status=0 order by custid desc";
$qry1="select * from customermast where status=0 and custtype = 'VENDOR' order by custdesc";
$qry = mysql_query($qry1);
$data = array();
$i=1;
while($rows = mysql_fetch_array($qry))
{
	$data[] = array("custid"=> $rows['custid'],
        			"name" => $rows['custdesc'],
					"custtype" => $rows['custtype']
				     );
}
echo json_encode($data);
?>